[VERSN2]
watermark "Mod made by YochiThMaster333"

// if file_exists absolute CARS\WHEELS\GEOMETRY.BAK
// do
// move_file override absolute absolute CARS\WHEELS\GEOMETRY.BAK CARS\WHEELS\GEOMETRY.BIN
// move_file override absolute absolute CARS\WHEELS\TEXTURES.BAK CARS\WHEELS\TEXTURES.BIN
// erase_file absolute CARS\WHEELS\GEOMETRY.BAK
// erase_file absolute CARS\WHEELS\TEXTURES.BAK
// else
// end

move_file override relative absolute RimParts_Vanilla\_RimBrands.ini scripts\UnlimiterData\_RimBrands.ini

add_or_update_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL AUTO CO_RIM_BRAND_VOLK "Volk"

// Checks if FrontB.lzc file has been modified with TexEd
if collection_exists FRONTEND\FRONTB.LZC TPKBlocks DEFAULT
do
update_collection FRONTEND\FRONTB.LZC TPKBlocks DEFAULT CollectionName FRONTENDTEXTURES
else
end

add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES VISUAL_RIMS_BRAND_ADR VISUAL_RIMS_BRAND_ADR "RimParts_Vanilla\VISUAL_RIMS_BRAND_ADR.dds"
add_or_replace_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES VISUAL_RIMS_BRAND_VOLK VISUAL_RIMS_BRAND_VOLK "RimParts_Vanilla\VISUAL_RIMS_BRAND_VOLK.dds"
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36C5CBB5
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36C59F65
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xFE6B2E6E
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xFD131BF0
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36C53F5C
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x74B8D7A7
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xF224F9F0
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36C425F5
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0F436E42
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xF224F5AA
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0F35158D
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x9BBFB45E
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xF517C6BC
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xDEE35384
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x96C26F0D
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0ECD684E
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xE50D0313
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xF224C6B1
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x91665E78
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xDABECAD7
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xDF707205
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36BC7A17
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0E483B04
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xD0C0FF00
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xE8760A2C
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x6C2FA841
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36BA48A0
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xCE6B1AB0
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0xF224AC0A
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x6C2FA805
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0DEB2F1C
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x36B082DF
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x0E0175D7
remove_texture FRONTEND\FRONTB.LZC TPKBlocks FRONTENDTEXTURES 0x05AFCBBA

if directory_exists absolute CARS\YTMRIM1
do
erase_folder absolute CARS\YTMRIM1
erase_folder absolute CARS\YTMRIM2
erase_folder absolute CARS\YTMRIM3
else
end

if collection_exists GLOBAL\GLOBALB.LZC CarTypeInfos YTMRIM1
do
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos YTMRIM1
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos YTMRIM2
remove_collection GLOBAL\GLOBALB.LZC CarTypeInfos YTMRIM3
else
end

if collection_exists GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES
do
remove_collection GLOBAL\GLOBALB.LZC TPKBlocks YTMTIRES
else
end

if string_exists LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_FOXX
do
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_FOXX
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_SSR
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_WATANA
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_1552
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_ADVAN
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_SLINE
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_BIM
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_AR
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_CL
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_HRE
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_TOMS
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_ROTIFORM
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_VEILSIDE
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_VORS
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_SAVINI
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_SCHMIDT
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_WORK
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_TSW
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_LEXANI
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_BOYD
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_TENZO
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_MUGEN
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_RALLIART
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_COSMIS
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_VOSSEN
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_WEDS
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_COMPOMO
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_HOLESHOT
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_HALIBRAND
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_FIKSE
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_OEM
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_BLITZ
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_ZENDER
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_GIOVANNA
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_BORBET
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL CO_RIM_BRAND_MOMO
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_1
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_2
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_3
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_4
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_5
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_6
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_7
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_8
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_9
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_10
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_11
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_12
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_13
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_14
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_15
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_16
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_17
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_18
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_19
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_20
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_21
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_22
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_23
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_24
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_25
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_26
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_27
remove_string LANGUAGES\ENGLISH.BIN STRBlocks GLOBAL PN_YTMTIRE_CN
else
end

// Revert tire customization to the one featured in Unlimiter v4 by default
update_collection GLOBAL\GLOBALB.LZC SlotTypes HEADLIGHT SlotMainOverride EXTRA
update_collection GLOBAL\GLOBALB.LZC SlotTypes HEADLIGHT SlotStockOverride ""

if collection_exists GLOBAL\GLOBALB.LZC DBModelParts TIRE
do
remove_collection GLOBAL\GLOBALB.LZC DBModelParts TIRE
else
end

import override GLOBAL\GLOBALB.LZC DBModelParts RimParts_Vanilla\WHEELS.bin
import override GLOBAL\GLOBALB.LZC DBModelParts RimParts_Vanilla\WHEEL_MANUFACTURERS.bin

// Those files are actually unloaded to save RAM, so don't worry ^^
delete FRONTEND\FRONTB.LZC
delete LANGUAGES\ENGLISH.BIN